package com.eastfair.auth.hystrix;

import com.eastfair.auth.api.RoleServiceFeign;
import com.eastfair.auth.dto.RoleDTO;
import com.eastfair.auth.entity.Role;
import com.eastfair.auth.vo.RoleVo;
import com.eastfair.core.base.R;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 用户API熔断
 *
 * @author zuihou
 * @date 2019/07/23
 */
@Component
public class RoleApiFallback implements RoleServiceFeign {

    @Override
    public R<List<RoleVo>> findAllByIds(List<Long> ids) {
        return R.timeout();
    }

    @Override
    public R<List<RoleVo>> queryRole(RoleDTO roleDTO) {
        return R.timeout();
    }

    @Override
    public R<Role> createRole(RoleDTO roleDTO) {
        return R.timeout();
    }
}
